﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TalentPools.BLL;
using TalentPools.Model;
using WebManager;

/// <summary>
///Class1 的摘要说明
/// </summary>
public class CompanyClass
{
    public CompanyClass()
    {
        //
        //TODO: 在此处添加构造函数逻辑
        //
    }

    /// <summary>
    /// 判断是否完善基本信息
    /// </summary>
    /// <param name="companyId"></param>
    public static void CheckBaseMeanCount(string companyName)
    {
        BasePage basepage = new BasePage();
        int val = new Company_BaseMeansManager().GetBaseMeanCount(companyName);
        if (val <= 0)
        {
            basepage.JsWindows("请先完善基本信息，才能进行其他操作！", "../Company/RegBaseMean.aspx?companyId=" + companyName);
        }
    }

    public static void CheckQyUserLoginState()
    {
        BasePage basepage = new BasePage();
        if (HttpContext.Current.Session["qyUser"] == null)
        {
            basepage.JsWindows("请先登录才能查看优秀人才", "../Index.aspx");
        }
    }
}